<style>
.fui-goods-item .image .playbtn {
    background: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9;
	padding-top:4rem;
    text-align: center;
    color: #fff;
}
</style>
	<div ng-if="pagedata.list" class="fui-goods-group block">
			<div ng-repeat="item in pagedata.list" class="fui-goods-item">
				<div ng-click="pagedata.gotoitem(item);" ng-class="{'image':1, 'echelon':item.active.title}" data-text="{{item.active.title}}" style="position:relative;height:10rem;background-image: url({{tomedia(item.image) ||'../core/resource/images/nopic.jpg'}})">
					<div ng-show="item.total <=0" class="salez" style="background-image: url({{tomedia(pagedata.shopset.shop.saleout)}}); "></div>
					<div ng-if="item.video" class="playbtn"><i class="icon icon-iconfontplay2" style="font-size:1.6rem;"></i></div>
				</div>
				<div ng-click="pagedata.gotoitem(item);" class="detail" style="height:2.6rem">
					<a>
						<div class="name">
							<i ng-show="item.ispresell == 1" class="fui-tag fui-tag-danger">预售</i>
							{{item.title}}
						</div>
					</a>
					<div class="price" style="margin-top: 0.1rem">
						<span class="member"><img ng-repeat="m in item.members" ng-if="$index<=5" class="avatar" style="margin-right:-0.3rem" ng-src="{{tomedia(m.avatar) || '../core/resource/images/nopic.jpg'}}"></span>
						<span class="subtitle" style="font-weight:400"><i class="icon icon-good"></i> {{item.likes || 0}}</span>
					</div>
				</div>
			</div>
	</div>
<div id="showtaobaoke"  class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
		<div class="modal-dialog" style="width:80%;left:10%;">
			<div class="wap-qrcode-container" style="border-radius:0.5rem;height:auto">
				<button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
				<p class="example1" style="padding:0.3rem;border-radius:0.5rem;margin:1rem;background:#FFFFCC">{{pagedata.copyinfo}}</p>
				<p ng-click="clip(pagedata.copyinfo)" class="example1 btn btn-sm btn-red-o">复制商品口令</p>
			</div>
		</div>
</div>
<script>
scope.pagedata.gotoitem=function(item){
	if(item.pluginname=='jy_taobaoke'){
		$('#showtaobaoke').modal();
		scope.pagedata.selectgoods=item;
		scope.pagedata.copyinfo='【'+item.title+'】'+item.active.url+' 点击链接，再选择浏览器打开；或复制这段描述'+item.active.code+'后到《手机淘宝》';
		scope.$evalAsync();
	}else{
		var pluginname=scope.pagedata.pluginname?scope.pagedata.pluginname:'jy_weishop';
		scope.access_json(pluginname+'/goods.detail//id='+item.id);
	}
}
var isvideogoods=scope.pagedata.pluginset?scope.pagedata.pluginset.isvideogoods:'';
scope.tool.get_list('jy_weishop/goods.index/getlist/order=ishot&isvideogoods='+isvideogoods,true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_weishop/goods.index/getlist/isvideogoods='+isvideogoods);
}
</script>
